﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame4
{
    class Model
    {
        private Dictionary<String, Animation> animations;
        private String id;
        private String defaultAnimaton;

        public Model(String id)
        {
            animations = new Dictionary<string, Animation>();
            this.id = id;
        }

        public void addAnimation(String name, Animation animation)
        {
            if (animations.Count == 0)
                defaultAnimaton = name;
            animations.Add(name, animation);
        }

        public Animation getAnimation(String name)
        {
            return animations[name];
        }

        public String getId()
        {
            return id;
        }

        public String DefaultAnimaton
        {
            get { return defaultAnimaton; }
            set { defaultAnimaton = value; }
        }
    }
}
